<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>
    
    <link href="./assets/styles/default.css" rel="stylesheet" />
    <link href="./assets/styles/page/file_index.css" rel="stylesheet" />
    <link href="./assets/styles/page/system_index.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/plugins/jquery.tagsinput.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>
    <script type="text/javascript">
		$(function(){
			$(".colorbox").colorbox();
			$('#tags').tagsInput();
				
			var c1 = categoryModal({
				url:"select_category.php?keepThis=true&parent=3&TB_iframe=true&height=500&width=300&modal=false",
				mode:"tree",
				container:"#search_category",
				trigger:"#id_category a"
			});
			
			setTreeView("#category");
			
			$('#category a').click(function(){
				$('#category a').removeClass("active");
				$(this).addClass("active");
			})
			
			tableToThumbs({
				name : 2,
				type : 0,
				img  : 1,
				main : [2],
				info : [3,4,5,6,7]		
			});
			
		});
    </script>

</head>
<body>

{include file='include/header.inc.html'}

<div id="container">
	<aside id="accordion">
    	<div id="aside_inner">
    		{include file='include/menu.inc.html'}
        </div>
    </aside>
    
    <article>

    	<h2><span>&nbsp;</span>File Manager<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
            	<li class="active"><a href="file_manager.php"><span>検索</span></a></li>
            	<li><a href="file_manager.php?op=regist"><span>登録</span></a></li>
			</ul>
        </nav>
        
		<section id="content">
			<h3>検索</h3>
			
			<div id="content_left">
				<h4><span>&nbsp;</span>条件</h4>
				<form name="search_form" method="post" action="{$smarty.server.SCRIPT_NAME}" >
				{include file='file_manager/include/search_form.inc.html'}
				<p class="btn_blank">
					<button type="submit" class="submit"><span>検索</span></button>
				</p>
				<input type="hidden" name="op" value="serach"/>
				<input type="hidden" name="page_id" value=""/>
				</form>
			</div>
			
			<div id="content_right">
			
				<h4>{if isset($pager->info.all)}{$pager->info.all|number_format}{else}0{/if}ファイル見つかりました</h4>
			
				{if isset($list)}
				
					<ul class="btns activemenu b10" id="liststyle">
                    	<li class="btn left"><a href="javascript:;" class="active"><em class="list"></em>&nbsp;テーブル</a></li>
                    	<li class="btn right"><a href="javascript:;"><em class="thumbs"></em>&nbsp;サムネイル</a></li>
                    </ul>
                
					{if isset($pager->info.all) && $pager->info.all > 0}
	
						{include file='file_manager/include/search_list.inc.html'}
						{include file='include/pager.inc.html'}
						
	                {/if}
					
				{/if}
				
			</div>

        </section>

    </article>
    
</div>

	{include file='include/footer.inc.html'}

</body>
</html>